/*
 * Copyright (C), 2002-2016, 苏宁易购电子商务有限公司
 * FileName: EmployeeExpensiveSaleInfo.java
 * Author:   15050536
 * Date:     2016年12月6日 下午4:39:19
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.po.tm;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 时光机-员工2016年销售最贵的一单信息 实体类
 *
 * @author 15050536 石键平
 */
@Entity(name = "bi_employee_expensive_sale_info")
public class EmployeeExpensiveSaleInfo implements Serializable {

	/**
	 */
	private static final long serialVersionUID = 9152988124990269819L;

	/**
	 * 自增主键
	 */
	private Long id;

	/**
	 * 员工工号
	 */
	private String employeeId;

	/**
	 * 最贵订单的商品数量
	 */
	private int num;

	/**
	 * 金额
	 */
	private BigDecimal payAmnt;

	/**
	 * 商品名称
	 */
	private String cmmdtyName;

	/**
	 * 品类编码
	 */
	private String cateCode;

	/**
	 * 销售日期 yyyy-MM-dd HH:mm:ss
	 */
	private String saleDate;

	/**
	 * 顾客姓名
	 */
	private String customName;

	/**
	 * 顾客性别
	 */
	private String gender;

	/**
	 * 处理时间
	 */
	private String etlTime;

	public EmployeeExpensiveSaleInfo() {

	}

	/**
	 * @param employeeId
	 * @param num
	 * @param payAmnt
	 * @param cmmdtyName
	 * @param cateCode
	 * @param saleDate
	 * @param customName
	 * @param gender
	 */
	public EmployeeExpensiveSaleInfo(String employeeId, int num, BigDecimal payAmnt, String cmmdtyName, String cateCode, String saleDate, String customName, String gender) {
		super();
		this.employeeId = employeeId;
		this.num = num;
		this.payAmnt = payAmnt;
		this.cmmdtyName = cmmdtyName;
		this.cateCode = cateCode;
		this.saleDate = saleDate;
		this.customName = customName;
		this.gender = gender;
	}

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.TABLE)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "employee_id")
	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

	@Column(name = "num")
	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	@Column(name = "pay_amnt")
	public BigDecimal getPayAmnt() {
		return payAmnt;
	}

	public void setPayAmnt(BigDecimal payAmnt) {
		this.payAmnt = payAmnt;
	}

	@Column(name = "cmmdty_name")
	public String getCmmdtyName() {
		return cmmdtyName;
	}

	public void setCmmdtyName(String cmmdtyName) {
		this.cmmdtyName = cmmdtyName;
	}

	@Column(name = "cate_code")
	public String getCateCode() {
		return cateCode;
	}

	public void setCateCode(String cateCode) {
		this.cateCode = cateCode;
	}

	@Column(name = "sale_date")
	public String getSaleDate() {
		return saleDate;
	}

	public void setSaleDate(String saleDate) {
		this.saleDate = saleDate;
	}

	@Column(name = "custom_name")
	public String getCustomName() {
		return customName;
	}

	public void setCustomName(String customName) {
		this.customName = customName;
	}

	@Column(name = "gender")
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Column(name = "etl_time")
	public String getEtlTime() {
		return etlTime;
	}

	public void setEtlTime(String etlTime) {
		this.etlTime = etlTime;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}

}
